package com.hqd.jjvm.rtda.heap.classloader;

import com.hqd.jjvm.classpath.ClassParse;
import com.hqd.jjvm.classpath.DirClassResource;

/**
 * 用户类加载器，加载当前项目类文件
 *
 * @author hqd
 */
public class AppJClassLoader extends JClassLoader {

    static {
        //USER_PATH = AppJClassLoader.class.getResource("/").toURI().getPath().replaceFirst("/", "");
    }

    public AppJClassLoader(JClassLoader parentJClassLoader, ClassParse classParse) {
        super(parentJClassLoader, classParse);
    }

    public AppJClassLoader(ClassParse classParse) {
        this(new ExtJClassLoader(), classParse);
    }

    public AppJClassLoader(String classPath) {
        this(new ExtJClassLoader(), new ClassParse(new DirClassResource(classPath)));
    }

}
